<!doctype  html>
<html>
<head>
    <meta charset="utf-8">
    <title>判断是否为闰年</title>
     <style>
         h2{text-align: center;}
         p{padding:-left:15px;}
         .box{height: 180px;width: 535px; border: 1px solid #eee; background-color: white;  opacity:0.8;}
         </style>
    <>
</head>
<body>
<div class="box">
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/9/28 0028
 * Time: 下午 6:25
 */
$year=2008;
$result=(($year%4==0)&&($year%100!==0) || ($year%400==0))?'是闰年':'不是闰年';
echo '<h2>闰年的判断</h2>';
echo '<p>判断的年份：'.$year;
echo'<p>判断的结果：'.$year.'年'.$result;
?>
    </div>

</body>
</html>